code to calculate the optimal ratios for degrees 4 to 8, that populates Lemma 9
for degrees 0 to 3 we calculate it analytically in the paper

run main.m

observations: 
ratio less than 2 is obtained for d<9
for d=9 it is 2.05